package cn.tedu.test.lbs.thread_local;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyController {
    public void business(){
        log.info("我的控制层执行了 业务代码");
        Thread thread = Thread.currentThread();
        //threadLocal.get()
        String name = ThreadLocalUtil.get();
        log.info("当前线程:{}",thread.getId());
        log.info("当前线程:{}",name);
    }
}
